<template>
    <div class="menu">
        <div class="item">
          全选  <input type="checkbox" :checked="checkedAll" @change="setCheckedAll"/>
        </div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item">操作</div>

    </div>
</template>
<script>
export default {
    props:["checkedAll"],
    methods:{
        setCheckedAll(){
            this.$emit("setCheckedAll",window.event.target.checked);

        }
    }
}
</script>